<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>    
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="x-ua-compatible" content="ie=7" />

    <link rel="stylesheet" type="text/css" href="css/tpl_defaults/leftbar.css" />
    <link rel="stylesheet" type="text/css" href="css/tpl_defaults/style.css" />

    <title>左侧栏目</title>
  </head>
  <body>
    <div id="leftbar">
        <div id="topinfo">
            {*if $user_id*}
            <div class="logininfo">
                <span class="logout">[<a href="logout.php" target="_parent">退出</a>]</span>
                您好,
                <strong>{*$user_name*}</strong>
            </div>
            <div class="pad padbg">
                <div class="clear">
                    <div class="right"></div>
                    <div class="left"></div>
                </div>
                <div class="pic">
                    <img src="/images/avatars/{*$user_avatar*}" />
                </div>
                <div class="txt">
                    <ul class="lafter">
                        <li>&nbsp;<a href="post.php" target="rightmain">发帖</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="self.php" target="rightmain">个人设置</a></li>
                        <li>&nbsp;<a href="{*$app_user_url*}message_list.php" target="_blank">消息</a>{*if $isummsg>0*}(<span class="red">{*$isummsg*}</span>){*else*}&nbsp;&nbsp;{*/if*}|&nbsp;&nbsp;<a href="group_list.php" target="rightmain">论坛等级</a></li>
                        <li>&nbsp;<a href="user_thread.php" target="rightmain">帖子</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="user_list.php" target="rightmain">论坛用户</a></li>
                    </ul>
                </div>
                <div class="clear">
                    <div class="leftb"></div>
                    <div class="rightb"></div>
                </div>
            </div>
            {*else*}
            <div class="logininfo">
                您好,
                <strong>访客</strong>
            </div>
            <div class="pad padbg">
                <div class="clear">
                    <div class="right">&nbsp;</div>
                    <div class="left">&nbsp;</div>
                </div>
                <div class="pic">
                    <img src="/images/avatars/000.jpg" />
                </div>
                <div class="txt">
                    <ul class="lafter">
                        <li>&nbsp;<a href="#">新手帮助</a></li>
                        <li>&nbsp;<a href="#">社区用户准则</a></li>
                        <li>&nbsp;<a href="{*$app_reg_url*}index.php?from={*$app_bbs_url*}" target="_top">登录</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{*$app_reg_url*}register.php" target="_blank">注册账户</a></li>
                    </ul>
                </div>
                <div class="clear">
                    <div class="leftb">&nbsp;</div>
                    <div class="rightb">&nbsp;</div>
                </div>
            </div>
            {*/if*}

            <ul id="menufunc">
                <li><a id="listClose" id="listClose" class="on" href="#" onclick="window.frames[0].tree.collapseChildren();listOpen('close');"><span>论坛列表</span></a></li>
                <li><a id="listOpen" id="listOpen" href="#" onclick="window.frames[0].tree.expandChildren();listOpen('open');"><span>展开</span></a></li>
            </ul>
        </div>
        <div id="menuarea">
          <iframe id="forum" name="forum" frameborder="0" height="600px" width="100%"></iframe>
        </div>
    </div>

<script language="javascript" type="text/javascript">
var froum = document.getElementById("forum");
if (froum) {
  froum.style.display = "";
  froum.src = "left_menu.php";
}
//颜色
function listOpen(value){
  var listOpen = document.getElementById("listOpen");
  var listClose = document.getElementById("listClose");
  if(value == "open")
  {
    listOpen.className = "on";
    listClose.className = "#";
  }
  else
  {
    listOpen.className = "#";
    listClose.className = "on";
  }
}
//listOpen("close");
</script>

  </body>
</html>
